package week5;

import java.util.Scanner;

public class PP0501 {
    public static void main(String[] args) {
        final int a = 4, b = 100, c = 400;
        int d;

        System.out.println("Plz inter the year: ");
        Scanner scan = new Scanner(System.in);
        d = scan.nextInt();

        if (d % a == 0 )
        {
            if (d % b == 0)
            {
                if (d % c == 0)
                    System.out.println("It is RunNian.");
                else
                    System.out.println("It is not RunNian.");
            }
            else
                System.out.println("It is RunNian.");
        }
        else if (d < 1582)
            System.out.println("False.");
        else
            System.out.println("It is not RunNian.");
    }
}
